package com.aaa.mrcai.controller;

import com.aaa.mrcai.result.AjaxResult;
import com.aaa.mrcai.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author 惠普
 * @date 2021/12/13  10:14
 */
@RestController
@RequestMapping("index")
public class IndexController {

    @Autowired
    private IndexService indexService;

    @RequestMapping("seaGoodsList")
    public AjaxResult seaGoodsList(){
        return indexService.seaGoodsList();
    }
    @RequestMapping("fruitGoodsList")
    public AjaxResult fruitGoodsList(){
        return indexService.fruitGoodsList();
    }
    @RequestMapping("greensGoodsList")
    public AjaxResult greensGoodsList(){
        return indexService.greensGoodsList();
    }
    @RequestMapping("oilGoodsList")
    public AjaxResult oilGoodsList(){
        return indexService.oilGoodsList();
    }
    @RequestMapping("eggGoodsList")
    public AjaxResult eggGoodsList(){
        return indexService.eggGoodsList();
    }

    @RequestMapping("driedGoodsList")
    public AjaxResult driedGoodsList(){
        return indexService.driedGoodsList();
    }
    @RequestMapping("meatGoodsList")
    public AjaxResult meatGoodsList(){
        return indexService.meatGoodsList();
    }
    @RequestMapping("nativeGoodsList")
    public AjaxResult nativeGoodsList(){
        return indexService.nativeGoodsList();
    }


}
